import request from '@/utils/request'

//  首页-热门品牌
// @param {*} limit 数量限制
export const findBrand = (limit = 6) => {
  return request('/home/brand', 'get', { limit: limit })
}

// 获取广告图
//  * @returns Promise
export const findBanner = (distributionSite) => {
  return request('/home/banner', 'get', { distributionSite: distributionSite })
}

// 获取新鲜好物
export const findNew = (limit = 4) => {
  return request('home/new', 'get', { limit: limit })
}

/**
 * 首页-人气推荐
 * @param {*} 无请求参数
 * @returns
 */
export const findHot = () => {
  return request('/home/hot', 'get')
}
// 首页-商品区域
export const findGoods = () => {
  return request('home/goods', 'get')
}
// 最新专题
export const findSpecial = () => {
  return request('home/special', 'get')
}
